public class Person  {
    public Person() {

    }

    public String getName() {
        return name;
    }

    public String setName(String name) {
        this.name = name;
        return name;
    }

    private String name;


    public Person(String name) {
        this.name = name;
    }
    public void howToPlay(Sport sp){
        sp.play();
//        if (sp.equals(football)){
//            System.out.println(this.name+"在踢足球");
//        }else if (sp.equals(basketball)){
//            System.out.println(this.name+"在打篮球");
//        }else if (sp.equals(null)){
//            System.out.println("打羽毛球");
//        }

    }
}

